package parser

import (
	"fmt"
	"regexp"
)

func ParseCity(contents []byte) {
	re := regexp.MustCompile(`<a href="(http://www.zhenai.com/zhenghun/[0-9a-z]+)"[^>]*>([^<]+)</a>`)
	matches := re.FindAllSubmatch(contents, -1)
	for _, m := range matches {
		fmt.Printf("city：%s Url：%s\n", m[2], m[1])
		//fmt.Printf("%s\n", m)
	}
}
